﻿package com.webdesign.action;

import javax.annotation.Resource;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import com.opensymphony.xwork2.ActionContext;
import com.webdesign.dto.HomeworkInfoDTO;
import com.webdesign.service.ITbHomeworkService;


@Controller("StuCheckHomeworkDetailAction")
@Scope("prototype")
public class StuCheckHomeworkDetailAction {
	
	private ITbHomeworkService iTbHomeworkService;
	
	//homeworkid,作业号
	private String homeworkid;
	
	private HomeworkInfoDTO homework;
	
	
	/*
	 * 学生查看作业详情
	 */
	public String checkDetail(){
		homework = iTbHomeworkService.checkDetail(homeworkid);

		return "success";
		
	}

	public ITbHomeworkService getiTbHomeworkService() {
		return iTbHomeworkService;
	}


	@Resource(name="TbHomeworkService")
	public void setiTbHomeworkService(ITbHomeworkService iTbHomeworkService) {
		this.iTbHomeworkService = iTbHomeworkService;
	}


	public String getHomeworkid() {
		return homeworkid;
	}


	public void setHomeworkid(String homeworkid) {
		this.homeworkid = homeworkid;
	}

	public HomeworkInfoDTO getHomework() {
		return homework;
	}

	public void setHomework(HomeworkInfoDTO homework) {
		this.homework = homework;
	}
	
	

}
